#######################################
#
# Rape Events
#
#######################################

# Written by a1exey

namespace = Rape

### Prisoner Events

# Jailer
character_event = {
	id = Rape.1
	desc = { text = EVTDESCRape.1_1
		trigger = { FROM = { is_female = yes } }
	}
	desc = { text = EVTDESCRape.1_2
		trigger = { FROM = { is_female = no } }
	}
	picture = GFX_evt_rape
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.1
	}
}
# Prisoner
character_event = {
	id = Rape.2
	desc = EVTDESCRape.2
	picture = GFX_evt_rape
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.2
	}
}
character_event = {
	id = Rape.102
	hide_window = yes
	is_triggered_only = yes
	immediate = { FROM = { character_event = { id = Rape.2 } } }
	option = { name = OK }
}
# Jailer
character_event = {
	id = Rape.3
	desc = EVTDESCRape.3
	picture = GFX_evt_rape
	
	#hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.3
	}
}

# Jailer
character_event = {
	id = Rape.4
	desc = EVTDESCRape.4
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.4
	}
}
# Jailer
character_event = {
	id = Rape.5
	desc = EVTDESCRape.5
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.5
	}
}
# Prisoner
character_event = {
	id = Rape.6
	desc = EVTDESCRape.6
	picture = GFX_evt_rape
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.6
	}
}

# Jailer
character_event = {
	id = Rape.7
	title = EVTTITLERape.7
	desc = { text = EVTDESCRape.7_1
		trigger = { is_female = no }
	}
	desc = { text = EVTDESCRape.7_2
		trigger = { is_female = yes }
	}
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
	option = { name = EVTOPTRape.7_1
		trigger = { is_female = no }
		any_spouse = { character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_1 } }
		any_dynasty_member = { limit = { is_alive = yes NOR = { character = ROOT any_spouse = { character = ROOT } } }
			if = { limit = { NOT = { trait = homosexual } }
				character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_1 }
			}
			if = { limit = { trait = homosexual }
				character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_2 }
			}
		}
	}
	option = { name = EVTOPTRape.7_2
		trigger = { is_female = yes }
		any_spouse = { character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_1 } }
		any_dynasty_member = { limit = { is_alive = yes NOR = { character = ROOT any_spouse = { character = ROOT } } }
			if = { limit = { NOT = { trait = homosexual } }
				character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_1 }
			}
			if = { limit = { trait = homosexual }
				character_event = { id = Rape.9 tooltip = EVTTTIPRape.9_2 }
			}
		}
	}
}

# Prisoner
character_event = {
	id = Rape.8
	desc = EVTDESCRape.8
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTARape.8
        add_trait = homosexual
        prestige = -50
	}
}

#Spouses and dynasty of Jailer
character_event = { #  ,     
	id = Rape.9
	title = EVTTITLERape.7
	desc = { text = EVTDESCRape.9_1_1
		trigger = { FROM = {
			is_female = no
			NOT = { any_spouse = { character = ROOT } }
		} }
	}
	desc = { text = EVTDESCRape.9_1_2
		trigger = { FROM = {
			is_female = no
			any_spouse = { character = ROOT }
		} }
	}
	desc = { text = EVTDESCRape.9_2_1
		trigger = { FROM = {
			is_female = yes
			NOT = { any_spouse = { character = ROOT } }
		} }
	}
	desc = { text = EVTDESCRape.9_2_2
		trigger = { FROM = {
			is_female = yes
			any_spouse = { character = ROOT }
		} }
	}
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
	option = { name = EVTOPTRape.9_1_1
		trigger = {
			FROM = { is_female = no }
			NOT = { trait = homosexual }
		}
		opinion = { modifier = opinion_homosexual_family who = FROM }
		opinion = { modifier = opinion_homosexual_family who = FROM years = 1 }
	}
	option = { name = EVTOPTRape.9_1_2
		trigger = {
			FROM = { is_female = no }
			trait = homosexual
			any_spouse = { character = FROM }
		}
		opinion = { modifier = opinion_homosexual_family who = FROM years = 1 }
	}
	option = { name = EVTOPTRape.9_1_3
		trigger = {
			FROM = { is_female = no }
			trait = homosexual
			is_female = no
		}
	}
	option = { name = EVTOPTRape.9_1_4
		trigger = {
			FROM = { is_female = no }
			trait = homosexual
			is_female = yes
			NOT = { any_spouse = { character = FROM } }
		}
	}
	option = { name = EVTOPTRape.9_2_1
		trigger = {
			FROM = { is_female = yes }
			NOT = { trait = homosexual }
		}
		opinion = { modifier = opinion_homosexual_family who = FROM }
		opinion = { modifier = opinion_homosexual_family who = FROM years = 1 }
	}
	option = { name = EVTOPTRape.9_2_2
		trigger = {
			FROM = { is_female = yes }
			trait = homosexual
			any_spouse = { character = FROM }
		}
		opinion = { modifier = opinion_homosexual_family who = FROM years = 1 }
	}
	option = { name = EVTOPTRape.9_2_3
		trigger = {
			FROM = { is_female = yes }
			trait = homosexual
			is_female = no
			NOT = { any_spouse = { character = FROM } }
		}
	}
	option = { name = EVTOPTRape.9_2_4
		trigger = {
			FROM = { is_female = yes }
			trait = homosexual
			is_female = yes
		}
	}
}
character_event = { #        flag_RMA_mod,       ,  RMA    .
	id = Rape.10
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		set_global_flag = flag_RMA_mod #    ,        RMA - . Kassatka
	}
	option = { name = OK }
}
